#pragma once
#include <assert.h>

char* my_strncat(char* dest,const char* src,size_t count)
{
	assert(dest && src);
	char* base = dest;
	while (*dest++ != '\0');
	dest--;
	while (count--)
	{
		if ((*dest++ = *src++) == '\0')
			return base;
	}
	*dest = '\0';
	return base;
}